package com.xal.service.impl;

import com.xal.mapper.SchoolMapper;
import com.xal.pojo.entiey.School;
import com.xal.service.SchoolService;
import com.xal.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: Swagger
 * @author: 邢奥林
 * @create: 2023-04-15 14:31
 **/
@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
     private SchoolMapper schoolMapper;
    @Override
    public Result findAll() {
        List<School> classes = schoolMapper.selectList(null);
        return new Result(200,"查询成功",classes);

    }
}
